#ifndef MYSQLDATABASE
#define MYSQLDATABASE

#include <iostream>
#include <sstream>
#include <memory>
#include <string>
#include <sstream>
#include <stdexcept>

#include <driver.h>
#include <connection.h>
#include <statement.h>
#include <prepared_statement.h>
#include <resultset.h>
#include <metadata.h>
#include <resultset_metadata.h>
#include <exception.h>
#include <warning.h>

using namespace std;
using namespace sql;

class mysqlDatabase {

  Driver *driver;
	Connection *con;

public:

  bool connect(std::string host, std::string user, std::string pass);
  bool connected(void) const;
  void closeConnection();

  sql::PreparedStatement *prepareQuery(std::string query);
  bool                    executequery(std::string query);
  ResultSet *             sendquery   (std::string query);

  mysqlDatabase();
  ~mysqlDatabase();

private:

  void clear();
};

#endif